package com.vehicle.coupon.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.vehicle.coupon.mapper.CouponRecordCopy1Mapper;
import com.vehicle.coupon.domain.CouponRecordCopy1;
import com.vehicle.coupon.service.ICouponRecordCopy1Service;

/**
 * 优惠券领取记录Service业务层处理
 *
 * @author XU
 * @date 2025-04-01
 */
@Service
public class CouponRecordCopy1ServiceImpl implements ICouponRecordCopy1Service
{
    @Autowired
    private CouponRecordCopy1Mapper couponRecordCopy1Mapper;

    /**
     * 查询优惠券领取记录
     *
     * @param id 优惠券领取记录主键
     * @return 优惠券领取记录
     */
    @Override
    public CouponRecordCopy1 selectCouponRecordCopy1ById(Long id)
    {
        return couponRecordCopy1Mapper.selectCouponRecordCopy1ById(id);
    }

    /**
     * 查询优惠券领取记录列表
     *
     * @param couponRecordCopy1 优惠券领取记录
     * @return 优惠券领取记录
     */
    @Override
    public List<CouponRecordCopy1> selectCouponRecordCopy1List(CouponRecordCopy1 couponRecordCopy1)
    {
        return couponRecordCopy1Mapper.selectCouponRecordCopy1List(couponRecordCopy1);
    }

    /**
     * 新增优惠券领取记录
     *
     * @param couponRecordCopy1 优惠券领取记录
     * @return 结果
     */
    @Override
    public int insertCouponRecordCopy1(CouponRecordCopy1 couponRecordCopy1)
    {
        return couponRecordCopy1Mapper.insertCouponRecordCopy1(couponRecordCopy1);
    }

    /**
     * 修改优惠券领取记录
     *
     * @param couponRecordCopy1 优惠券领取记录
     * @return 结果
     */
    @Override
    public int updateCouponRecordCopy1(CouponRecordCopy1 couponRecordCopy1)
    {
        return couponRecordCopy1Mapper.updateCouponRecordCopy1(couponRecordCopy1);
    }

    /**
     * 批量删除优惠券领取记录
     *
     * @param ids 需要删除的优惠券领取记录主键
     * @return 结果
     */
    @Override
    public int deleteCouponRecordCopy1ByIds(Long[] ids)
    {
        return couponRecordCopy1Mapper.deleteCouponRecordCopy1ByIds(ids);
    }

    /**
     * 删除优惠券领取记录信息
     *
     * @param id 优惠券领取记录主键
     * @return 结果
     */
    @Override
    public int deleteCouponRecordCopy1ById(Long id)
    {
        return couponRecordCopy1Mapper.deleteCouponRecordCopy1ById(id);
    }
}
